//引入清除默认样式
import '@/style/reset.scss'
import { createApp } from 'vue'

import App from './App.vue'
import router from './router'
//引入 pinia 仓库
import pinia from '@/store'

const app = createApp(App)

//引入自定义插件对象:注册整个项目全局组件
import gloalComponent from '@/components/index'
app.use(gloalComponent)
//svg插件需要配置代码
import 'virtual:svg-icons-register'
// 引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
  locale: zhCn
})
app.use(router)
//安装 pinia 仓库
app.use(pinia)
//引入路由鉴权的文件
import './permisstion'
app.mount('#app')
